import request from '@/router/axios'

export function fetchList(query) {
  return request({
    url: '/exam/serviceCharge/page',
    method: 'get',
    params: query
  })
}

export function fetchProjectList(query) {
  return request({
    url: '/exam/serviceCharge/projectPage',
    method: 'get',
    params: query
  })
}

export function addObj(obj) {
  return request({
    url: '/exam/serviceCharge',
    method: 'post',
    data: obj
  })
}

export function submit(obj) {
  return request({
    url: '/exam/serviceCharge/submit',
    method: 'post',
    data: obj
  })
}

export function submitCharge(obj) {
  return request({
    url: '/exam/serviceCharge/submitCharge',
    method: 'post',
    data: obj
  })
}

export function rejectCharge(obj) {
  return request({
    url: '/exam/serviceCharge/rejectCharge',
    method: 'post',
    data: obj
  })
}

export function confirmCharge(obj) {
  return request({
    url: '/exam/serviceCharge/confirmCharge',
    method: 'post',
    data: obj
  })
}

export function getObj(id) {
  return request({
    url: '/exam/serviceCharge/' + id,
    method: 'get'
  })
}

export function getCharge(id) {
  return request({
    url: '/exam/serviceCharge/getCharge/' + id,
    method: 'get'
  })
}

export function delObj(id) {
  return request({
    url: '/exam/serviceCharge/' + id,
    method: 'delete'
  })
}

export function putObj(obj) {
  return request({
    url: '/exam/serviceCharge',
    method: 'put',
    data: obj
  })
}
